<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver DS18B20: ds18b20 base driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver DS18B20
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">DS18B20 full function driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__ds18b20__base__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ds18b20 base driver function<div class="ingroups"><a class="el" href="group__ds18b20__driver.html">ds18b20 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>ds18b20 base driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structds18b20__handle__s.html">ds18b20_handle_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">ds18b20 handle structure definition  <a href="structds18b20__handle__s.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structds18b20__info__s.html">ds18b20_info_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">ds18b20 info structure definition  <a href="structds18b20__info__s.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga98871c12e3fad6c31dae60144c3a51c5"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structds18b20__handle__s.html">ds18b20_handle_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a></td></tr>
<tr class="memdesc:ga98871c12e3fad6c31dae60144c3a51c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">ds18b20 handle structure definition  <a href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">More...</a><br /></td></tr>
<tr class="separator:ga98871c12e3fad6c31dae60144c3a51c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0d8f59ec1b4c532700951b5039bc839"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structds18b20__info__s.html">ds18b20_info_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#gaf0d8f59ec1b4c532700951b5039bc839">ds18b20_info_t</a></td></tr>
<tr class="memdesc:gaf0d8f59ec1b4c532700951b5039bc839"><td class="mdescLeft">&#160;</td><td class="mdescRight">ds18b20 info structure definition  <a href="group__ds18b20__base__driver.html#gaf0d8f59ec1b4c532700951b5039bc839">More...</a><br /></td></tr>
<tr class="separator:gaf0d8f59ec1b4c532700951b5039bc839"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gaa76e51e2201d4058f4274ca420c165f6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a> { <a class="el" href="group__ds18b20__base__driver.html#ggaa76e51e2201d4058f4274ca420c165f6a2240dc3e5f913d272861b29b87e06942">DS18B20_MODE_SKIP_ROM</a> = 0x00
, <a class="el" href="group__ds18b20__base__driver.html#ggaa76e51e2201d4058f4274ca420c165f6a6fefdf17cbb1204ac17187e4c6c96eeb">DS18B20_MODE_MATCH_ROM</a> = 0x01
 }</td></tr>
<tr class="memdesc:gaa76e51e2201d4058f4274ca420c165f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">ds18b20 mode enumeration definition  <a href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">More...</a><br /></td></tr>
<tr class="separator:gaa76e51e2201d4058f4274ca420c165f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3804f6549e6eeb30fc781d36ebbf8fbd"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga3804f6549e6eeb30fc781d36ebbf8fbd">ds18b20_power_mode_t</a> { <a class="el" href="group__ds18b20__base__driver.html#gga3804f6549e6eeb30fc781d36ebbf8fbdaa97a8020f8db2ddfdb22ce3f543001b2">DS18B20_POWER_MODE_PARASITE</a> = 0x00
, <a class="el" href="group__ds18b20__base__driver.html#gga3804f6549e6eeb30fc781d36ebbf8fbdab1abf829bf00979b637436a159283324">DS18B20_POWER_MODE_EXTERNALLY</a> = 0x01
 }</td></tr>
<tr class="memdesc:ga3804f6549e6eeb30fc781d36ebbf8fbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">ds18b20 power mode enumeration definition  <a href="group__ds18b20__base__driver.html#ga3804f6549e6eeb30fc781d36ebbf8fbd">More...</a><br /></td></tr>
<tr class="separator:ga3804f6549e6eeb30fc781d36ebbf8fbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a1cab097fcad68347f07f97e1bb2af8"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a> { <a class="el" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a5333ef2c5e5ec44213bf3f40bd9aa50b">DS18B20_RESOLUTION_9BIT</a> = 0x00
, <a class="el" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a6274d477f2d9d92a62050c3375c361a0">DS18B20_RESOLUTION_10BIT</a> = 0x01
, <a class="el" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a0396bfa58a01fdd9922771715e1467f6">DS18B20_RESOLUTION_11BIT</a> = 0x02
, <a class="el" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8af2f20b32fccc2658193d818188ae54ca">DS18B20_RESOLUTION_12BIT</a> = 0x03
 }</td></tr>
<tr class="memdesc:ga6a1cab097fcad68347f07f97e1bb2af8"><td class="mdescLeft">&#160;</td><td class="mdescRight">ds18b20 resolution enumeration definition  <a href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">More...</a><br /></td></tr>
<tr class="separator:ga6a1cab097fcad68347f07f97e1bb2af8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga73dc824fee896b24252b86e683618ee8"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga73dc824fee896b24252b86e683618ee8">ds18b20_info</a> (<a class="el" href="group__ds18b20__base__driver.html#gaf0d8f59ec1b4c532700951b5039bc839">ds18b20_info_t</a> *info)</td></tr>
<tr class="memdesc:ga73dc824fee896b24252b86e683618ee8"><td class="mdescLeft">&#160;</td><td class="mdescRight">get chip's information  <a href="group__ds18b20__base__driver.html#ga73dc824fee896b24252b86e683618ee8">More...</a><br /></td></tr>
<tr class="separator:ga73dc824fee896b24252b86e683618ee8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga42a0bced6314bc11b3c47f1d83bbff9a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga42a0bced6314bc11b3c47f1d83bbff9a">ds18b20_init</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga42a0bced6314bc11b3c47f1d83bbff9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the chip  <a href="group__ds18b20__base__driver.html#ga42a0bced6314bc11b3c47f1d83bbff9a">More...</a><br /></td></tr>
<tr class="separator:ga42a0bced6314bc11b3c47f1d83bbff9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa7b94675deaafbe00917e7e232278c77"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#gaa7b94675deaafbe00917e7e232278c77">ds18b20_deinit</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle)</td></tr>
<tr class="memdesc:gaa7b94675deaafbe00917e7e232278c77"><td class="mdescLeft">&#160;</td><td class="mdescRight">close the chip  <a href="group__ds18b20__base__driver.html#gaa7b94675deaafbe00917e7e232278c77">More...</a><br /></td></tr>
<tr class="separator:gaa7b94675deaafbe00917e7e232278c77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7b55e1d3f3ba9ca53c3a78c1d8d221b4"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga7b55e1d3f3ba9ca53c3a78c1d8d221b4">ds18b20_read</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, int16_t *raw, float *temp)</td></tr>
<tr class="memdesc:ga7b55e1d3f3ba9ca53c3a78c1d8d221b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">read data from the chip  <a href="group__ds18b20__base__driver.html#ga7b55e1d3f3ba9ca53c3a78c1d8d221b4">More...</a><br /></td></tr>
<tr class="separator:ga7b55e1d3f3ba9ca53c3a78c1d8d221b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadd246c4e8a5887a1acd710dee214323c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#gadd246c4e8a5887a1acd710dee214323c">ds18b20_set_mode</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, <a class="el" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a> mode)</td></tr>
<tr class="memdesc:gadd246c4e8a5887a1acd710dee214323c"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the chip mode  <a href="group__ds18b20__base__driver.html#gadd246c4e8a5887a1acd710dee214323c">More...</a><br /></td></tr>
<tr class="separator:gadd246c4e8a5887a1acd710dee214323c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac443f4e1e2ec109676d1842cc7d1e96c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#gac443f4e1e2ec109676d1842cc7d1e96c">ds18b20_get_mode</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, <a class="el" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a> *mode)</td></tr>
<tr class="memdesc:gac443f4e1e2ec109676d1842cc7d1e96c"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the chip mode  <a href="group__ds18b20__base__driver.html#gac443f4e1e2ec109676d1842cc7d1e96c">More...</a><br /></td></tr>
<tr class="separator:gac443f4e1e2ec109676d1842cc7d1e96c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4cf8a45542f1dfdca17347c0870f870f"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga4cf8a45542f1dfdca17347c0870f870f">ds18b20_set_rom</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, uint8_t rom[8])</td></tr>
<tr class="memdesc:ga4cf8a45542f1dfdca17347c0870f870f"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the handle rom  <a href="group__ds18b20__base__driver.html#ga4cf8a45542f1dfdca17347c0870f870f">More...</a><br /></td></tr>
<tr class="separator:ga4cf8a45542f1dfdca17347c0870f870f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf4d3d3dd0bc24d0c4fa2822bfbc32f35"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#gaf4d3d3dd0bc24d0c4fa2822bfbc32f35">ds18b20_get_rom</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, uint8_t rom[8])</td></tr>
<tr class="memdesc:gaf4d3d3dd0bc24d0c4fa2822bfbc32f35"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the chip rom  <a href="group__ds18b20__base__driver.html#gaf4d3d3dd0bc24d0c4fa2822bfbc32f35">More...</a><br /></td></tr>
<tr class="separator:gaf4d3d3dd0bc24d0c4fa2822bfbc32f35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga93cfb5e6ae40d2595d55aafcd947f4ba"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga93cfb5e6ae40d2595d55aafcd947f4ba">ds18b20_scratchpad_set_resolution</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, <a class="el" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a> resolution)</td></tr>
<tr class="memdesc:ga93cfb5e6ae40d2595d55aafcd947f4ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the resolution in the scratchpad  <a href="group__ds18b20__base__driver.html#ga93cfb5e6ae40d2595d55aafcd947f4ba">More...</a><br /></td></tr>
<tr class="separator:ga93cfb5e6ae40d2595d55aafcd947f4ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1e6aa803f8f341dbaeb010e5c4b3ecda"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga1e6aa803f8f341dbaeb010e5c4b3ecda">ds18b20_scratchpad_get_resolution</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle, <a class="el" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a> *resolution)</td></tr>
<tr class="memdesc:ga1e6aa803f8f341dbaeb010e5c4b3ecda"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the resolution in the scratchpad  <a href="group__ds18b20__base__driver.html#ga1e6aa803f8f341dbaeb010e5c4b3ecda">More...</a><br /></td></tr>
<tr class="separator:ga1e6aa803f8f341dbaeb010e5c4b3ecda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5b16e3c5bee08168be48a615150fe171"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga5b16e3c5bee08168be48a615150fe171">ds18b20_copy_scratchpad_to_eeprom</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga5b16e3c5bee08168be48a615150fe171"><td class="mdescLeft">&#160;</td><td class="mdescRight">copy the scratchpad content to the eeprom  <a href="group__ds18b20__base__driver.html#ga5b16e3c5bee08168be48a615150fe171">More...</a><br /></td></tr>
<tr class="separator:ga5b16e3c5bee08168be48a615150fe171"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga511d72a8988b7dc7dc09bd82ab3cfde3"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ds18b20__base__driver.html#ga511d72a8988b7dc7dc09bd82ab3cfde3">ds18b20_copy_eeprom_to_scratchpad</a> (<a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga511d72a8988b7dc7dc09bd82ab3cfde3"><td class="mdescLeft">&#160;</td><td class="mdescRight">copy the eeprom content to the scratchpad  <a href="group__ds18b20__base__driver.html#ga511d72a8988b7dc7dc09bd82ab3cfde3">More...</a><br /></td></tr>
<tr class="separator:ga511d72a8988b7dc7dc09bd82ab3cfde3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>ds18b20 base driver modules </p>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga98871c12e3fad6c31dae60144c3a51c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga98871c12e3fad6c31dae60144c3a51c5">&#9670;&nbsp;</a></span>ds18b20_handle_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structds18b20__handle__s.html">ds18b20_handle_s</a> <a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ds18b20 handle structure definition </p>

</div>
</div>
<a id="gaf0d8f59ec1b4c532700951b5039bc839"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf0d8f59ec1b4c532700951b5039bc839">&#9670;&nbsp;</a></span>ds18b20_info_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structds18b20__info__s.html">ds18b20_info_s</a> <a class="el" href="group__ds18b20__base__driver.html#gaf0d8f59ec1b4c532700951b5039bc839">ds18b20_info_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ds18b20 info structure definition </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gaa76e51e2201d4058f4274ca420c165f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa76e51e2201d4058f4274ca420c165f6">&#9670;&nbsp;</a></span>ds18b20_mode_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ds18b20 mode enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaa76e51e2201d4058f4274ca420c165f6a2240dc3e5f913d272861b29b87e06942"></a>DS18B20_MODE_SKIP_ROM&#160;</td><td class="fielddoc"><p>skip rom mode </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaa76e51e2201d4058f4274ca420c165f6a6fefdf17cbb1204ac17187e4c6c96eeb"></a>DS18B20_MODE_MATCH_ROM&#160;</td><td class="fielddoc"><p>match rom mode </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8h_source.html#l00079">79</a> of file <a class="el" href="driver__ds18b20_8h_source.html">driver_ds18b20.h</a>.</p>

</div>
</div>
<a id="ga3804f6549e6eeb30fc781d36ebbf8fbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3804f6549e6eeb30fc781d36ebbf8fbd">&#9670;&nbsp;</a></span>ds18b20_power_mode_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ds18b20__base__driver.html#ga3804f6549e6eeb30fc781d36ebbf8fbd">ds18b20_power_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ds18b20 power mode enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga3804f6549e6eeb30fc781d36ebbf8fbdaa97a8020f8db2ddfdb22ce3f543001b2"></a>DS18B20_POWER_MODE_PARASITE&#160;</td><td class="fielddoc"><p>parasite power mode </p>
</td></tr>
<tr><td class="fieldname"><a id="gga3804f6549e6eeb30fc781d36ebbf8fbdab1abf829bf00979b637436a159283324"></a>DS18B20_POWER_MODE_EXTERNALLY&#160;</td><td class="fielddoc"><p>externally power mode </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8h_source.html#l00088">88</a> of file <a class="el" href="driver__ds18b20_8h_source.html">driver_ds18b20.h</a>.</p>

</div>
</div>
<a id="ga6a1cab097fcad68347f07f97e1bb2af8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6a1cab097fcad68347f07f97e1bb2af8">&#9670;&nbsp;</a></span>ds18b20_resolution_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ds18b20 resolution enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga6a1cab097fcad68347f07f97e1bb2af8a5333ef2c5e5ec44213bf3f40bd9aa50b"></a>DS18B20_RESOLUTION_9BIT&#160;</td><td class="fielddoc"><p>9 bit resolution </p>
</td></tr>
<tr><td class="fieldname"><a id="gga6a1cab097fcad68347f07f97e1bb2af8a6274d477f2d9d92a62050c3375c361a0"></a>DS18B20_RESOLUTION_10BIT&#160;</td><td class="fielddoc"><p>10 bit resolution </p>
</td></tr>
<tr><td class="fieldname"><a id="gga6a1cab097fcad68347f07f97e1bb2af8a0396bfa58a01fdd9922771715e1467f6"></a>DS18B20_RESOLUTION_11BIT&#160;</td><td class="fielddoc"><p>11 bit resolution </p>
</td></tr>
<tr><td class="fieldname"><a id="gga6a1cab097fcad68347f07f97e1bb2af8af2f20b32fccc2658193d818188ae54ca"></a>DS18B20_RESOLUTION_12BIT&#160;</td><td class="fielddoc"><p>12 bit resolution </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8h_source.html#l00097">97</a> of file <a class="el" href="driver__ds18b20_8h_source.html">driver_ds18b20.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga511d72a8988b7dc7dc09bd82ab3cfde3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga511d72a8988b7dc7dc09bd82ab3cfde3">&#9670;&nbsp;</a></span>ds18b20_copy_eeprom_to_scratchpad()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_copy_eeprom_to_scratchpad </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>copy the eeprom content to the scratchpad </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 copy eeprom to scratchpad failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01164">1164</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga5b16e3c5bee08168be48a615150fe171"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5b16e3c5bee08168be48a615150fe171">&#9670;&nbsp;</a></span>ds18b20_copy_scratchpad_to_eeprom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_copy_scratchpad_to_eeprom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>copy the scratchpad content to the eeprom </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 copy scratchpad to eeprom failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01078">1078</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="gaa7b94675deaafbe00917e7e232278c77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa7b94675deaafbe00917e7e232278c77">&#9670;&nbsp;</a></span>ds18b20_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_deinit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>close the chip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 bus deinit failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01392">1392</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="gac443f4e1e2ec109676d1842cc7d1e96c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac443f4e1e2ec109676d1842cc7d1e96c">&#9670;&nbsp;</a></span>ds18b20_get_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_get_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a> *&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the chip mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*mode</td><td>points to a chip mode buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l00368">368</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="gaf4d3d3dd0bc24d0c4fa2822bfbc32f35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf4d3d3dd0bc24d0c4fa2822bfbc32f35">&#9670;&nbsp;</a></span>ds18b20_get_rom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_get_rom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>rom</em>[8]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the chip rom </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*rom</td><td>points to a rom buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l00420">420</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga73dc824fee896b24252b86e683618ee8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga73dc824fee896b24252b86e683618ee8">&#9670;&nbsp;</a></span>ds18b20_info()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_info </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#gaf0d8f59ec1b4c532700951b5039bc839">ds18b20_info_t</a> *&#160;</td>
          <td class="paramname"><em>info</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get chip's information </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">*info</td><td>points to a ds18b20 info structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l02084">2084</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga42a0bced6314bc11b3c47f1d83bbff9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga42a0bced6314bc11b3c47f1d83bbff9a">&#9670;&nbsp;</a></span>ds18b20_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initialize the chip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 bus initialization failed</li>
<li>2 handle is NULL</li>
<li>3 linked functions is NULL</li>
<li>4 reset failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01305">1305</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga7b55e1d3f3ba9ca53c3a78c1d8d221b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7b55e1d3f3ba9ca53c3a78c1d8d221b4">&#9670;&nbsp;</a></span>ds18b20_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t *&#160;</td>
          <td class="paramname"><em>raw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>temp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>read data from the chip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*raw</td><td>points to a raw adc buffer </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*temp</td><td>points to a converted temperature buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l01426">1426</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga1e6aa803f8f341dbaeb010e5c4b3ecda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1e6aa803f8f341dbaeb010e5c4b3ecda">&#9670;&nbsp;</a></span>ds18b20_scratchpad_get_resolution()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_scratchpad_get_resolution </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a> *&#160;</td>
          <td class="paramname"><em>resolution</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the resolution in the scratchpad </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*resolution</td><td>points to a chip resolution buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 scratchpad get resolution failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l00653">653</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga93cfb5e6ae40d2595d55aafcd947f4ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga93cfb5e6ae40d2595d55aafcd947f4ba">&#9670;&nbsp;</a></span>ds18b20_scratchpad_set_resolution()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_scratchpad_set_resolution </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a>&#160;</td>
          <td class="paramname"><em>resolution</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set the resolution in the scratchpad </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">resolution</td><td>is the chip resolution </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 scratchpad set resolution failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l00469">469</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="gadd246c4e8a5887a1acd710dee214323c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadd246c4e8a5887a1acd710dee214323c">&#9670;&nbsp;</a></span>ds18b20_set_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_set_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set the chip mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>is the chip mode </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l00342">342</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
<a id="ga4cf8a45542f1dfdca17347c0870f870f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4cf8a45542f1dfdca17347c0870f870f">&#9670;&nbsp;</a></span>ds18b20_set_rom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ds18b20_set_rom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>rom</em>[8]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set the handle rom </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>points to a ds18b20 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">*rom</td><td>points to a rom buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ds18b20_8c_source.html#l00394">394</a> of file <a class="el" href="driver__ds18b20_8c_source.html">driver_ds18b20.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
